﻿
using Android.App;
using Android.Content;

namespace YDArrangement
{
    [BroadcastReceiver]
    [IntentFilter(new[] { Intent.ActionBootCompleted })]
    public class BootReceiver : BroadcastReceiver
    {
        public override void OnReceive(Context context, Intent intent)
        {
            //throw new System.NotImplementedException();
            //Toast.MakeText(context, "test", ToastLength.Short).Show();
            Intent _intent = new Intent();
            _intent.SetClass(context, typeof(MainActivity));
            _intent.SetFlags(ActivityFlags.NewTask);
            context.StartActivity(_intent);
        }
    }
}